package net.simflow.swf.analyzer.exec.stats.data;

import net.simflow.swf.analyzer.network.data.Flow;

public class FlowExecTime {
	private Flow flow;
	private int maxTime;
	private int minTime;
	private double avgTime;

	public FlowExecTime(Flow flow, int maxTime, int minTime, double avgTime) {
		this.flow = flow;
		this.maxTime = maxTime;
		this.minTime = minTime;
		this.avgTime = avgTime;
	}

	public Flow getFlow() {
		return flow;
	}

	public int getMaxTime() {
		return maxTime;
	}

	public int getMinTime() {
		return minTime;
	}

	public double getAvgTime() {
		return avgTime;
	}

	@Override
	public String toString() {
		StringBuffer strb = new StringBuffer();

		strb.append(maxTime).append(": ").append(minTime).append(": ")
				.append(avgTime);

		return strb.toString();
	}
}
